#!/bin/sh
level=$(sndioctl -n output.level | awk '{ printf int($1*100+0.5) }')
muted=$(sndioctl -n output.mute)

[ "$muted" = "1" ] && echo "muted" || echo "$level"
